package com.supermap.dubbo.client.dubbo;

import com.alibaba.dubbo.config.annotation.Reference;
import com.supermap.dubbo.service.UserDubboService;
import com.supermap.dubbo.service.domain.User;
import org.springframework.stereotype.Service;

@Service
public class UserDubboConsumerService {
    @Reference(version = "1.0")
    UserDubboService userDubboService;

    public int addUser(String name,String age){
        return userDubboService.addUser(name, age);
    }

    public User findById(String id){
        return userDubboService.findById(id);
    }

    public void updataById(String id,String name){
        userDubboService.updataById(id, name);
    }

    public void deleteById(String id){
        userDubboService.deleteById(id);
    }
}
